package com.kaili.db.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.pojo.dto.notice.NoticeAddDTO;
import com.kaili.pojo.entity.HsOptEwb;
import com.kaili.pojo.entity.HsOptEwbNotice;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.kaili.pojo.vo.EwbNoticeVO;
import com.kaili.common.exception.BaseExcept;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
public interface HsOptEwbNoticeMapper extends BaseMapper<HsOptEwbNotice> {

    int createdEwbNotice(NoticeAddDTO hsOptEwbNotice) throws BaseExcept;

    int modifiedEwb(HsOptEwb ewb) throws BaseExcept;

    void modifiedNotice(String ewbNo) throws BaseExcept;

    List<EwbNoticeVO> queryEwbAppointList(Pagination page, Map search);
}
